package com.t.testsql;

import android.database.ContentObserver;
import android.nfc.Tag;
import android.os.Handler;
import android.util.Log;

public class MycontentObserver extends ContentObserver {

    private final String TAG = "MycontentObserver";
    /**
     * Creates a content observer.
     *
     * @param handler The handler to run {@link #onChange} on, or null if none.
     */
    public MycontentObserver(Handler handler) {
        super(handler);
    }

    @Override
    public void onChange(boolean selfChange) {
        super.onChange(selfChange);
        // 记得需要加上这句话，不然不会执行
       // this.getContext().getContentResolver().notifyChange(uri, null);
        Log.e(TAG,"onChange");
    }
}
